#ifndef __MY_LOG_MESSAGE__
#define __MY_LOG_MESSAGE__
#include"util.hpp"
#include<iostream>
#include<string>
#include"level.hpp"
#include<thread>
namespace mylog
{
    class LogMsg{
        public:
            time_t _time;
            LogLevel::value _level;
            size_t _line;
            std::string _filename;
            std::thread::id _tid;
            std::string _logger;
            std::string _payload;
        public:
            LogMsg(size_t line,LogLevel::value level,const std::string filename,const std::string logger,const std::string payload):
            _line(line),_level(level),_filename(filename),_logger(logger),_payload(payload),_time(Util::Date::GetTime()),_tid(std::this_thread::get_id())
            {}
    };
}

#endif